package com.crm.mapper;

import com.crm.domain.entity.Assignment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 线索商机分配表 Mapper 接口
 * </p>
 *
 * @author Hulunico
 * @since 2024-08-07
 */
public interface AssignmentMapper extends BaseMapper<Assignment> {

    @Select("select count(business_id) from assignment where user_id = #{userId}")
    Integer countBusiness(Long userId);
}
